<template>
  <div class="page">
    <navigation>
      {{ $t('我的发布') }}
    </navigation>
    <nuxt-link v-if="user.otc_merchant === '2'" class="fabuanniu" to="/otc/publish-post">{{ $t('发布') }}</nuxt-link>
    <publish-list />
  </div>
</template>
<script>
import { mapState } from 'vuex'
import navigation from '@/components/Navigation.vue'
import publishList from '@/components/partials/publish-list/List.vue'
export default {
  components: { navigation, publishList },
  computed: {
    ...mapState({
      user: ({ auth }) => auth.user
    })
  }
}
</script>
<style scoped>
.fabuanniu {
  position: absolute;
  top: 60px;
  right: 0;
  padding: 0 15px;
  color: #1b8afe;
  z-index: 999;
  font-size: 14px;
}
</style>
